package com.py.credit.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.py.framework.core.common.Page;

public interface CreditMapDao {

	public List<Map> queryListOfEmptyAdd();

	public List<Map> queryListBasicMap(@Param(value = "type") String type, @Param(value = "search") String search,
			@Param(value = "sbnf") String sbnf, @Param(value = "qyid") String qyid);

	public List<Map> queryMapAreaList(@Param(value = "qyid") String qyid, @Param(value = "sbnf") String sbnf);

	public List<Map> queryMapDeptList(@Param(value = "qyid") String qyid, @Param(value = "sbnf") String sbnf);

	public Map querySingleBasicInfBytybm(@Param(value = "tybm") String tybm);

	public Map getLonAndLatByQybm(@Param(value = "qybm") String qybm);

	public void updateEmptyAdd(@Param(value = "lon") String lon, @Param(value = "lat") String lat,
			@Param(value = "tybm") String tybm);
	
	public void updateEmptyAddAll(@Param(value = "list") List<Map> list);

	public void initMapAreaBasic(@Param(value = "sbnf") String sbnf);

	public void updateMapAreaBasic(@Param(value = "sbnf") String sbnf, @Param(value = "resource") String resource,
			@Param(value = "field") String field);

	public void updateMapAreaLoseCredit(@Param(value = "sbnf") String sbnf, @Param(value = "field") String field);

	public void updateMapAreaRewardAndPunish(@Param(value = "sbnf") String sbnf, @Param(value = "field") String field,
			@Param(value = "type") String type);

	public void initMapDeptBasic(@Param(value = "sbnf") String sbnf);

	public void updateMapDeptBasic(@Param(value = "sbnf") String sbnf, @Param(value = "resource") String resource,
			@Param(value = "field") String field);

	public void updateMapDeptLoseCredit(@Param(value = "sbnf") String sbnf, @Param(value = "field") String field);

	public void updateMapDeptRewardAndPunish(@Param(value = "sbnf") String sbnf, @Param(value = "field") String field,
			@Param(value = "type") String type);

	public void deleteArea();

	public void deleteDept();

	public void initMapDeptBasicAddAll();

	public void initMapAreaBasicAddAll();

	public List<Map> queryAllAreaCodes();

	/**
	 * 
	 * @Function 分页查询数据质量报告
	 * @FileName DataQualityDao.java
	 * @MethodName dataQualityListByConditionForPage
	 * @param columns
	 * @param additionalColumns
	 * @param page
	 * @param condition
	 * @return
	 * @Date 2018年7月11日 下午2:31:39
	 * @Author Min DongXv
	 *
	 */
	public List<Map<String, Object>> creditMapListByConditionForPage(@Param(value = "columns") List<String> columns,
			@Param(value = "additionalColumns") String[] additionalColumns,
			@Param(value = "conditions") List<String> conditions, @Param(value = "page") Page page,
			@Param(value = "type") String type, @Param(value = "search") String search,
			@Param(value = "sbnf") String sbnf, @Param(value = "qyid") String qyid);
}
